<?php

namespace app\common\model;

use think\Env;
use think\Exception;
use think\Model;

/**
 * 模型
 */
class MemberApply extends Model
{
    // 表名
    protected $name = 'member_apply';
    protected $deleteTime = false;
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    const CHECK_PENDING = 1; //待审核
    const AUDIT_PASS = 2; //审核通过
    const Audit_FAILED = 3; //审核不通过


    public function member()
    {
        return $this->belongsTo('member', 'member_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


}
